//
//  ViewController.m
//  UI_12_StroyBoardAndSizeClasses
//
//  Created by li cheng on 16/7/29.
//  Copyright © 2016年 li cheng. All rights reserved.
//

#import "ViewController.h"
#import "CustomTableViewCell.h"

@interface ViewController ()<UITableViewDataSource, UITableViewDelegate>

@end

@implementation ViewController
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 10;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    CustomTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"pool" forIndexPath:indexPath];
//    cell.textLabel.text = @"123";
//    cell.imageView.image = [UIImage imageNamed:@"0"];
    cell.newsImageView.image = [UIImage imageNamed:@"0"];
    cell.titleLabel.text = @"biaoti";
    cell.descriptionLabel.text = @"dfdsafdsfdsfdsfdsfdsfdsfsdfsadf";
    return cell;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
